package org.csl.core;

import org.csl.service.OrderManager;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
		SayHello sayHello = (SayHello)ac.getBean("sayHello");
		SayHello sayHello2 = (SayHello)ac.getBean("sayHelloContr");
		sayHello.say();
		System.out.println(sayHello2.getI());
		System.out.println(sayHello2.getStr());
		
	    OrderManager  orderManager = (OrderManager)ac.getBean("orderService");
	    orderManager.queryOrder();
	}

}
